/***
 * 
 *统一定义接口，有利于维护 
 * 
 **/ 
const HISTORY= 'https://control.maksdu.com/';
//const HISTORY= 'http://localhost:8088/'
const URL ={
    lunbo:HISTORY+'carouse/getshow',//接口1
    post:{
    	getByCategory: HISTORY+'post/allpost/category',//分类获取所有贴目
    	getByType: HISTORY+'post/allpost/type',
    	submitPost: HISTORY+'post/submit',//发帖
    	postall: HISTORY+'post/all',
    	self: HISTORY+'post/self',
    	read: HISTORY+'post/read',
    	reply: HISTORY+'post/reply'
	},
	types: {
		all: HISTORY+'type/getall'
	},
	category: {
		getType: HISTORY+'type/gettypes'
	},
	datas: HISTORY+'admin/datas',
	getcategorys: HISTORY+'category/all',
	login: HISTORY+'login',
	check: HISTORY+'check',
	logout: HISTORY+'logout',
	getuser: HISTORY+ 'getUser',
	registry: HISTORY+'registry',
	userinfo: {
		add: HISTORY+'userinfo/add'
	},
	upload: {
		image: HISTORY+'upload/headpic'
	}
}
export default URL
